CPP		= $(wildcard ./src/*.cpp)
HPP		= $(wildcard ./src/*.h)
OBJ		= $(CPP:./src/.cpp=.o)
EXE		= sim

.PHOENY: all clean

all: $(EXE)

$(EXE): $(OBJ)
	g++ -o $(EXE) $(OBJ) -lpthread
%.o: %.cpp $(HPP)
	g++ -O0 -g3 -Wall -I. -c $<
clean:
	rm -f $(OBJ)
